﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TestUI
{
    public partial class Test3videowmp : Form
    {
        public Test3videowmp()
        {
            InitializeComponent();
        }

        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            openFileDialog1.Filter = "Media Files|*.avi;*.asf;*.wmv;*.flv;*mkv";
            openFileDialog1.Multiselect = true;



            if ((openFileDialog1.ShowDialog() == DialogResult.OK) && (openFileDialog1.FileNames.Length == 3))
            {
                videoControl1.Stop();
                videoControl1.FileNames = openFileDialog1.FileNames;
                videoControl1.Getpath();
                videoControl1.Play();
            }
            else
                MessageBox.Show("You have to select 3 media files");
        }
    }
}
